package top.iflyoung.cim.common.req;

import java.util.Date;

/**
 * @author liguiyang
 * @description
 * @sine 1.8
 * @date 2021/9/512:24
 **/
public class P2PMessageVo extends BaseRequest {

    private Long senderId;

    private Long recevierId;

    private String message;

    private int messageType;

    /**
     * 创建时间
     */
    private Date createTime = new Date();

    public P2PMessageVo() {
    }

    public P2PMessageVo(Long senderId, Long recevierId, String message) {
        setMessage(message);
        setSenderId(senderId);
        setRecevierId(recevierId);
    }

    public P2PMessageVo(Long senderId, Long recevierId, String message, int messageType) {
        this(senderId, recevierId, message);
        setMessageType(messageType);
    }

    public Long getSenderId() {
        return senderId;
    }

    public void setSenderId(Long senderId) {
        this.senderId = senderId;
    }

    public Long getRecevierId() {
        return recevierId;
    }

    public void setRecevierId(Long recevierId) {
        this.recevierId = recevierId;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getMessageType() {
        return messageType;
    }

    public void setMessageType(int messageType) {
        this.messageType = messageType;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
